#!/usr/bin/env python
# -*- coding: utf-8 -*-

from BeautifulSoup import BeautifulSoup
import urllib2

class tagsCounter:

    def __init__(self):
        '''
            comments
        '''

    def getTabCount(self, urlText, searchableTag):

        url = urllib2.urlopen(urlText)

        doc = url.read()

        soup = BeautifulSoup(''.join(doc))

        tagList = soup.findAll(searchableTag)

        return len(tagList)
